package kr.hkit.powerjava.chapter23;

public class MyThread extends Thread{

	@Override
	public void run() {//thread t; t.start()하면 호출되는 함수
		for(int i = 100; i > 0; i--){
			System.out.print(i + " ");
			try {
				Thread.sleep(500);//1000이면 1초(0.5초)
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
		System.out.println("Mythread 종료");
	}
}
